Ext.define('Risk.view.areaInfo.AreaInfo',{
    extend:'Ext.window.Window',
    alias:'widget.areaInfo',
    title:'基本信息浏览',
    autoShow:true,
    width:556,
    heigth:600,
    maxHeight:600,
    resizable:false,
    areaId:null,
    items:[{
        xtype:'form',
        frame:true,
        margin:10,
        title:'基本信息',
        layout:  {
	        type: 'table',
	        columns: 2
        },
        items:[{
	            xtype:'textfield',
	            fieldLabel:'区域名称',
	            readOnly : true,
	            lableWidth:70,
	            width:248,
	            labelAlign:'right',
	            fieldStyle:'border:none;background-color: #DFE8F6;background-image: none;',
	            name:'areaname'
	        },/*{
	            xtype:'textfield',
	            fieldLabel:'区域级别',
	            readOnly : true,
	            lableWidth:70,
	            width:248,
	            labelAlign:'right',
	            fieldStyle:'border:none;background-color: #DFE8F6;background-image: none;'
	        }*/,{
	            xtype:'textfield',
	            fieldLabel:'所属上级单位',
	            readOnly : true,
	            lableWidth:70,
	            width:248,
	            labelAlign:'right',
	            fieldStyle:'border:none;background-color: #DFE8F6;background-image: none;',
	            name:'upname'
	        },{
	            xtype:'textfield',
	            fieldLabel:'下级单位数量',
	            readOnly : true,
	            lableWidth:70,
	            width:248,
	            labelAlign:'right',
	            fieldStyle:'border:none;background-color: #DFE8F6;background-image: none;',
	            name:'count'
	            
	        }]
    },{
        xtype:'fieldset',
        title:'管辖范围内评估项目消息',
        margin:10,
        items:[{
            xtype:'grid',
            maxHeight:300,
            sortableColumns:false,
            viewConfig:{
                forceFit:true,
                stripeRows:true
            },
            store:'areaStore.DataStore',
            scroll:'vertical',
            columns:[
                {header:'名称',flex:1,dataIndex:'text',sortable:true},
                {header:'所属区域',flex:1,dataIndex:'upname',sortable:true},
                {header:'下级单位数量',flex:1,dataIndex:'number',sortable:true},
                {header:'雷暴日数量',flex:1,dataIndex:'td',sortable:true}
            ]
        }]
    }]
});